// import Cookies from 'js-cookie'
// 存储Token
const TOKEN = 'token'
export function setToken (token) {
  localStorage.setItem(TOKEN, token)
}
export function getToken () {
  return localStorage.getItem(TOKEN)
}

// 存储最后的PATH 方便登录后跳转
const LAST_PATH = 'lastPath'
export function setLastPath (path) {
  localStorage.setItem(LAST_PATH, path)
}
export function getLastPath () {
  return localStorage.getItem(LAST_PATH)
}

// 存储pid
export const PID = 'pid'
export function savePid (pid) {
  localStorage.setItem(PID, pid)
}
export function getPid () {
  return localStorage.getItem(PID)
}
